<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script src="doublylinkedlist.js"></script>
    
    <script>
        var doublyLinkedList = new DoublyLinkedList();
        doublyLinkedList.append(1);
        doublyLinkedList.append(2);
        // console.log(doublyLinkedList.forwardString());
        // console.log(doublyLinkedList.backwardString());

        doublyLinkedList.insert(0,3);
        doublyLinkedList.insert(1,6);
        doublyLinkedList.insert(4,20);
        // console.log(doublyLinkedList.forwardString());

        doublyLinkedList.remove(3)
        doublyLinkedList.remove(20)
        doublyLinkedList.remove(2)
        // console.log(doublyLinkedList.forwardString());

    </script>
</body>
</html>